//
//  CircleButton.h
//  SecretAlbums
//
//  Created by BabyFinancial on 15/5/18.
//  Copyright (c) 2015年 BabyFinancial. All rights reserved.
//

#import <UIKit/UIKit.h>

@class CircleButton;

typedef NS_ENUM(NSInteger, CircleButtonType) {
    CircleButtonDefault = 0,    // 数字按钮
    CircleButtonCancel          // 取消按钮
};

@protocol CircleButtonDelegate <NSObject>

- (void)touchCircleButton:(CircleButton *)circleButton;

@end

@interface CircleButton : UIControl

@property (nonatomic, assign) CircleButtonType type;
// 当type为CircleButtonDefault时才显示
@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, assign) id<CircleButtonDelegate> delegate;
@property (nonatomic, strong)CAShapeLayer *cancelLayer;

- (instancetype)initWithType:(CircleButtonType)type;

@end
